#!/usr/bin/env python
# coding: utf-8

# In[1]:


import numpy as np


# In[2]:


X = np.array([[1.2, 1.5, 1.8], 
[1.3, 1.4, 1.9], 
[1.1, 1.6, 1.7]]) 


# In[45]:


Y = np.array([5, 10, 9])


# In[5]:


X[0]


# In[56]:


get_ipython().run_cell_magic('timeit', '', 'li = []\nCount = np.zeros((3,1))\nfor i in range(0,3):\n    for j in range(0,3):\n        Count[i] = Count[i] + X[i,j]*Y[j]\n    ')


# In[55]:


Count


# In[58]:


get_ipython().run_cell_magic('timeit', '', 'li = []\nCount[0] = np.dot(X[0],Y)\nCount[1] = np.dot(X[1],Y)\nCount[2] = np.dot(X[2],Y)')


# In[59]:


Count


# In[ ]:




